Add _dd.tags.function to top level trace tags hashmap. #516
+79
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds all global tags to the top level trace tags hash map.
Working in conjunction with the apm-trace-intake team, intake will ensure that these tags are placed onto all spans in the trace and then are made available for our usage metric.
Motivation
Part of the usage metrics tagging which will allow us to include more tags (including custom tags) on the
datadog.serverless.traced_invocationsmetric.Additional Notes
Note that this change will duplicate the location of the global tags in the trace payload sent to intake. Currently, these payloads look like
After this change they will look like
Once the changes are in place in intake, we can remove the tags from the spans themselves. The intake pipeline will manage unpacking and copying these tags for us, at which point trace payloads will look like